<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <title></title>
    <meta name="keywords" content="" >
    <meta name="description" content="">
    <link rel="stylesheet" type="text/css" href="{{ elixir('css/admin.css') }}">
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
    <article id="admin-login">
        <section class="login-box">
            <form action="/admin/postlogin" method="post">
                {{ csrf_field() }}
                <h1>后台登录</h1>
                <dl class="clearfix">
                    <dt>用户名：</dt>
                    <dd><input name="username" type="text" value="{{ old('username') }}" /></dd>
                </dl>
                <dl class="clearfix">
                    <dt>密 码：</dt>
                    <dd><input name="password" type="password" /></dd>
                </dl>
                <dl class="clearfix verification">
                    <dt>验证码：</dt>
                    <dd>
                        <input name="verification" type="text" />
                        <img src="{{ captcha_src('flat') }}" title="" onclick="this.src='/captcha/flat?'+Math.random()" />
                    </dd>
                </dl>
                <dl class="clearfix">
                    <dt></dt>
                    <dd>
                        <input type="submit" value="登录" />
                    </dd>
                </dl>
            </form>
        </section>
        @if (count($errors) > 0)
        <section class="message">
            <div class="message-box">
                <p>{{ $errors->first() }}</p>
                <div class="message-confirm">确认</div>
            </div>
        </section>
        @endif
    </article>
<script src="/js/jquery.min.js"></script>
<script>
    $(function(){
        $('.message-box .message-confirm').on('click',function(){
            $('.message').hide();
        });
    });
</script>
</body>
</html>